<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>案例样式</title>
    <style>
        div{
            /*给div标签添加边框*/
            border: 1px solid red;
        }
        /*左侧图片*/
        .left{
            width: 20%;
            float: left;
            height: 500px;
        }
        /*左侧图片*/
        .center{
            width: 59%;
            float: left;
            height: 500px;
        }
        .right{
            width: 20%;
            float: left;
            height: 500px;
        }
        .footer{
            /*清除浮点*/
            clear: both;
            /*文本对齐方式*/
            text-align:center;
            background-color: blue;
        }



    </style>


</head>
<body>
<!--顶部登陆-->
<div>top</div>
<!--导航条-->
<div>navibar</div>
<!--左侧图片-->
<div class="left">left</div>
<!--中间正文-->
<div class="center">center</div>
<!--右侧图片-->
<div class="right">right</div>
<!--底部页面超链接-->
<div class="footer">footer</div>
</body>
</html>